package com.hqyj.mall.xiaomimall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

//订单主表
@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
public class OrderMain extends BaseEntity {

    @Id
    @TableId(type= IdType.ASSIGN_ID)
    private String oid; //  订单编号
    private Integer uid; // 用户名
    private String realname; //收货人，真实姓名
    private String mobile; //收货人的手机号。

    private String province; //省份
    private String city; //城市
    private String zone; //区
    private String street; //详细街道

    private double totalPrice; //总金额
    private String createTime="";

    private boolean ispay= false;
    private boolean isend = false; //订单是否已经完成结束
}
